# encoding
ENCODING_UTF8 = 'utf8'

# exception
ERROR_TRACEBACK_LIMIT = 50

# sms
VALIDATE_CODE_REPEAT_SENDING_INTERVAL = 61
REGISTER_VALIDATE_CODE_EXPIRED_TIME = 610

REG_CATEGORY_WEIXIN_GZH = 0
REG_CATEGORY_WEIXIN_APPLET = 1

# user
RK_WX_ACCESS_TOKEN_GZH = 'rk:wx:access_token:gzh:%s'
RK_WX_ACCESS_TOKEN_APPLET = 'rk:wx:access_token:applet:%s'
RK_ACCOUNT_BIND_UPDATE = 'rk:account:bind:update:%s'


USER_ID_KEY = 'user_id'
TOKEN_TIME_OUT = 60 * 60 * 24 * 15
USER_TOKEN_KEY = "token"
BIND_UPDATE_STEP_DELAY = 600

URL_SLASH = '/'

# audio
AUDIO_SPEED_COMMON = '1'
AUDIO_PITCH_COMMON = '0'

# restrict
RESET_PWD_TIMEOUT = 60 * 60 * 24
RESET_PWD_MAXIMUM_VALUE_OF_THE_LIMIT = 5
PWD_LOGIN_TIMEOUT = 60 * 60 * 24
PWD_LOGIN_MAXIMUM_VALUE_OF_THE_LIMIT = 6

# key
INTERNAL_KEY = "A PLUS INC 1227"
